﻿using System;

namespace TraditionalMalteseCuisine.App_Code.Objects
{
    [Serializable]
    public abstract class BaseTableWithMediaFields : BaseTable
    {
        //*************************************************
        //                Class Members
        //*************************************************
        #region Class Members
        public const string DEFAULT_IMAGE_FOLDER_LOCATION = "media/images/";
        public const string DEFAULT_THUMBNAIL_FOLDER_LOCATION = "media/thumbnails/";
        public const string DEFAULT_VIDEOS_FOLDER_LOCATION = "media/videos/";

        private string mImageFolderLocation = DEFAULT_IMAGE_FOLDER_LOCATION;
        private string mThumbnailFolderLocation = DEFAULT_THUMBNAIL_FOLDER_LOCATION;
        private string mVideoFolderLocation = DEFAULT_VIDEOS_FOLDER_LOCATION;


        public const string IMAGE_LOCATION_TAG = "image_location";
        public const string THUMBNAIL_LOCATION_TAG = "thumbnail_location";
        public const string VIDEO_LOCATION_TAG = "video_location";

        private string mImageLocation = string.Empty;
        private string mThumbnailLocation = string.Empty;
        private string mVideoLocation = string.Empty;
        #endregion
        //*************************************************
        

        //*************************************************
        //                  Properties
        //*************************************************
        #region Properties
        public string ImageFolderLocation
        {
            get { return mImageFolderLocation; }
            set { mImageFolderLocation = value; }
        }

        public string ThumbnailFolderLocation
        {
            get { return mThumbnailFolderLocation; }
            set { mThumbnailFolderLocation = value; }
        }

        public string VideoFolderLocation
        {
            get { return mVideoFolderLocation; }
            set { mVideoFolderLocation = value; }
        }


        public string ImageLocation
        {
            get { return mImageLocation; }
            set { mImageLocation = value; }
        }

        public string ThumbnailLocation
        {
            get { return mThumbnailLocation; }
            set { mThumbnailLocation = value; }
        }

        public string VideoLocation
        {
            get { return mVideoLocation; }
            set { mVideoLocation = value; }
        }
        #endregion
        //*************************************************
    }
}